|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpow.webserver.User
public class User
represents a ivy or a web user account for the web user the account nest also the list of drones that the user can control the list contains the ivy name of the drone (MJ5, TJ1...). In Paparazzi a drone is not identified in a unique identifier, that means that if a user can pilot a drone MJ5, he can pilot all 'MJ5' drone
| Constructor Summary | |
|---|---|
User(java.lang.String log,
java.lang.String pwd,
Rights rght)
create a user account |
|
| Method Summary | |
|---|---|
void |
addDrone(java.lang.String d)
add a drone name to the list of drones that the user can control |
boolean |
canControl(java.lang.String droneName)
inform whether the user can pilot a drone or not |
void |
clearListDrone()
reset the list of drone that the web user can control |
java.lang.String |
getListDrone()
the list of drone that the web user can control |
java.lang.String |
getLogin()
|
java.lang.String |
getPassword()
|
Rights |
getRights()
|
java.util.Iterator<java.lang.String> |
getSetItr()
|
boolean |
IsPwdTrue(java.lang.String pwd)
check if the password given in argument corresponds to the password user |
void |
setNom(java.lang.String log)
specify the login of the user |
void |
setPwd(java.lang.String pwd)
specify the user password, it's not stored in clear (md5 hash) |
void |
setRights(Rights r)
specify the type of right granted to the user |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public User(java.lang.String log,
java.lang.String pwd,
Rights rght)
log - the login of the userpwd - the password of the userrght - the type of the user| Method Detail |
|---|
public java.util.Iterator<java.lang.String> getSetItr()
public void clearListDrone()
public java.lang.String getListDrone()
public void addDrone(java.lang.String d)
d - public boolean canControl(java.lang.String droneName)
droneName - the name of the drone
public Rights getRights()
public void setRights(Rights r)
r - the right granted to the userpublic java.lang.String getLogin()
public void setNom(java.lang.String log)
log - the login of the userpublic java.lang.String getPassword()
public void setPwd(java.lang.String pwd)
pwd - the user password in clearpublic boolean IsPwdTrue(java.lang.String pwd)
pwd - the password to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||